<?php
/**
 * Created by PhpStorm.
 * User: qingyun
 * Date: 17/2/21
 * Time: 下午12:45
 */
function getRandomNumber($num = 5){
    $string = '';
    for($i = 0;$i < $num; $i++){
        $string .= chr(mt_rand(97,122));
    }
    return $string;
}

function p($data){
    $str = '<pre>';
    $show_data = print_r($data,true);
    $str .= $show_data;
    $str .= '<pre>';
    echo $str;
}